package com.jaws.core.mvc.token;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 防止表单重复提交
 * 
 * @author maojian
 * @date 2017-05-11 08:57:04
 * @since v1.0.0
 */
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FormToken {

	// 生成token
	boolean generateToken() default false;

	// 检验token
	boolean checkToken() default false;
}
